﻿/// <reference path="jquery-1.4.4-vsdoc.js" />
/// <reference path="jquery-ui.js" />
$.ajaxSetup({
    cache: false
});
$.datepicker.setDefaults($.datepicker.regional["zh-CN"]);
function getDateString(date) {
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var day = date.getDate();
    return year + "-" + month + "-" + day;
}
function getDateThreeMonthStartString() {
    var now = new Date();
    var month = now.getMonth() - 3;
    if (month < 0) {
        month = month + 11;
        now.setFullYear(now.getFullYear() - 1);
    }
    now.setMonth(month);
    return getDateString(now);
}

function PreventAAction(id) {
    $("a", "#" + id).each(function () {
        //$(this).attr("onclick", $(this).attr("onclick").re + ";return false;");
        $(this).attr("href", "javascript:void(0)");
    });
}
